package com.cy.pj.sys.service;


import com.cy.pj.common.pojo.Node;
import com.cy.pj.sys.pojo.SysMenu;
import com.cy.pj.sys.pojo.SysUserMenu;
import org.apache.shiro.authz.annotation.RequiresPermissions;

import java.util.List;
import java.util.Map;
@RequiresPermissions("sys:user:update")
public interface SysMenuService {

    List<Map<String,Object>> findObjects();

    int deleteObject(Integer id);

    List<Node> findZtreeMenuNodes();

    int saveObject(SysMenu entity);

    int updateObject(SysMenu entity);

    List<SysUserMenu> findUserMenusByUserId(Integer id);
}
